package com.heima.apuser.controller;

import com.heima.apuser.service.ApUserService;
import com.heima.model.apuser.entity.ApUser;
import org.checkerframework.checker.units.qual.A;
import org.checkerframework.framework.qual.PolyAll;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("getUser")
public class ApUserFeginController {
    @Autowired
    private ApUserService apUserService;

    @PostMapping("/{id}")
    public ApUser getUser(@PathVariable Long id) {
        return apUserService.queryById(id);

    }

}
